﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PureMVC.Interfaces;
using PureMVC.Patterns.Observer;

namespace PureMVC.Patterns.Proxy
{
    public class Proxy : Notifier, IProxy
    {
        public static string NAME = "Proxy";

        public Proxy(string _proxyName, object _data = null)
        {
            ProxyName = _proxyName ?? NAME;
            if (_data != null) Data = _data;
        }

        public string ProxyName { get; protected set; }
        public object Data { get; set; }

        public virtual void OnRegister()
        {
        }

        public virtual void OnRemove()
        {
        }
    }
}